/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.data;


/**
 * A class to define exception thrown from running test steps
 * @author nurhat
 */
public class TestStepException extends RuntimeException
{

    private static final long serialVersionUID = 19826L;
    private TestStepResultType m_resultType;


    public TestStepException(TestStepResultType result,
                             String errorMsg)
    {
        super(errorMsg);
        m_resultType = result;
    }


    /**
     * Result type gives type of exception. e.g. MISTAKE, FAILURE etc..
     * @return
     */
    public TestStepResultType getResultType()
    {
        return m_resultType;
    }


    public void setResultType(TestStepResultType m_resultType)
    {
        this.m_resultType = m_resultType;
    }
}
